//
//  MusicPlayerManager.h
//  kyMusicPlayer
//
//  Created by 翁科宇 on 2018/5/14.
//  Copyright © 2018年 翁科宇. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface MusicPlayerManager : NSObject

typedef enum : NSUInteger{
    RepeatPlayMode,
    RepeatOnlyOnePlayMode,
    ShufflePlayMode,
} ShuffleAndRepeatState;

@property(nonatomic, strong)AVPlayer *play;
@property(nonatomic, strong)AVPlayerItem *playItem;
@property(nonatomic, assign)ShuffleAndRepeatState shuffleAndRepeatState;
@property(nonatomic, assign)NSInteger playingIndex;

+ (MusicPlayerManager *)sharedManager;
- (void)setplayItem:(NSString *)songUrl;
- (void)setplay;
- (void)startplay;
- (void)stopplay;
//- (void)play:(NSString *)songUrl;
@end
